<?php defined('InShopNC') or exit('Access Invalid!');?>

<div class="page">
    <!-- 页面导航 -->
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>客户介绍返利统计</h3>
                <h5>客户介绍返回查看与管理</h5>
            </div>
            <ul class="tab-base nc-row">
                <li><a href="/admin/modules/shop/index.php?act=fencheng_rebate" >返利统计</a></li>
                <li><a href="/admin/modules/shop/index.php?act=fencheng_rebate&op=kanjia_list" >线下合同补录</a></li>
                <li><a href="/admin/modules/shop/index.php?act=fencheng_rebate&op=kanjia_setting" >返利设置</a></li>
                <li><a href="/admin/modules/shop/index.php?act=fencheng_rebate&op=rebate_doing" class="current">活动规则</a></li>
            </ul>
        </div>
    </div>

    <!-- 操作说明 -->
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom"><i class="fa fa-lightbulb-o"></i>
            <h4 title="<?php echo $lang['nc_prompts_title'];?>"><?php echo $lang['nc_prompts'];?></h4>
            <span id="explanationZoom" title="<?php echo $lang['nc_prompts_span'];?>"></span> </div>
        <ul>
            <li>该信息显示在小程序及公众号内我要引荐供应商版块内</li>
            <li>请注意修改活动规则后，需再次核对返利设置是否设置完成</li>
        </ul>
    </div>

    <form id="doc_form" method="post">
        <input type="hidden" name="form_submit" value="ok" />
        <input type="hidden" name="doc_id" value="9" />
        <div class="ncap-form-default">

            <dl class="row">
                <dt class="tit">
                    <label><em>*</em>活动规则内容编辑</label>
                </dt>
                <dd class="opt">
                    <?php showEditor('doc_content',$output['doc']['doc_content']);?>
                    <span class="err"></span>
                    <p class="notic"></p>
                </dd>
            </dl>

            <div class="bot"><a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" id="submitBtn"><?php echo $lang['nc_submit'];?></a> </div>
        </div>
    </form>
</div>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/fileupload/jquery.iframe-transport.js" charset="utf-8"></script>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/fileupload/jquery.ui.widget.js" charset="utf-8"></script>
<script type="text/javascript" src="<?php echo RESOURCE_SITE_URL;?>/js/fileupload/jquery.fileupload.js" charset="utf-8"></script>
<script>
    //按钮先执行验证再提交表单
    $(function(){
        $("#submitBtn").click(function(){
            if($("#doc_form").valid()){
                $("#doc_form").submit();
            }
        });
    });

</script>